package com.zx.entity;


import java.util.List;

public class User {

  private int usid;
  private String usname;
  private String usaccount;
  private String uspsw;
  private String usphone;
  private List<Role> roles;
  public User(int usid, String usname, String usaccount, String uspsw, String usphone,List<Role> roles) {
    this.usid = usid;
    this.usname = usname;
    this.usaccount = usaccount;
    this.uspsw = uspsw;
    this.usphone = usphone;
    this.roles=roles;
  }

  public List<Role> getRoles() {
    return roles;
  }

  public void setRoles(List<Role> roles) {
    this.roles = roles;
  }

  public User() {
  }

  public int getUsid() {
    return usid;
  }

  public void setUsid(int usid) {
    this.usid = usid;
  }


  public String getUsname() {
    return usname;
  }

  public void setUsname(String usname) {
    this.usname = usname;
  }


  public String getUsaccount() {
    return usaccount;
  }

  public void setUsaccount(String usaccount) {
    this.usaccount = usaccount;
  }


  public String getUspsw() {
    return uspsw;
  }

  public void setUspsw(String uspsw) {
    this.uspsw = uspsw;
  }


  public String getUsphone() {
    return usphone;
  }

  public void setUsphone(String usphone) {
    this.usphone = usphone;
  }

  @Override
  public String toString() {
    return "User{" +
            "usid=" + usid +
            ", usname='" + usname + '\'' +
            ", usaccount='" + usaccount + '\'' +
            ", uspsw='" + uspsw + '\'' +
            ", usphone='" + usphone + '\'' +
            ", roles=" + roles +
            '}';
  }
}
